package com.yudongyang.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Patient {

	private Integer id;
	private String name;
	private Integer gender;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
	private Integer disease_id;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date diagnosed;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date die_date;
	
	private String dname;
	
	private Integer age;
	
	private Integer cunhuo;
	
	
	public Integer getCunhuo() {
		return cunhuo;
	}
	public void setCunhuo(Integer cunhuo) {
		this.cunhuo = cunhuo;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getDname() {
		return dname;
	}
	public void setDname(String dname) {
		this.dname = dname;
	}
	public Patient() {
		// TODO Auto-generated constructor stub
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Integer getDisease_id() {
		return disease_id;
	}
	public void setDisease_id(Integer disease_id) {
		this.disease_id = disease_id;
	}
	public Date getDiagnosed() {
		return diagnosed;
	}
	public void setDiagnosed(Date diagnosed) {
		this.diagnosed = diagnosed;
	}
	public Date getDie_date() {
		return die_date;
	}
	public void setDie_date(Date die_date) {
		this.die_date = die_date;
	}
	@Override
	public String toString() {
		return "Patient [id=" + id + ", name=" + name + ", gender=" + gender + ", birthday=" + birthday
				+ ", disease_id=" + disease_id + ", diagnosed=" + diagnosed + ", die_date=" + die_date + "]";
	}
	public Patient(Integer id, String name, Integer gender, Date birthday, Integer disease_id, Date diagnosed,
			Date die_date) {
		super();
		this.id = id;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.disease_id = disease_id;
		this.diagnosed = diagnosed;
		this.die_date = die_date;
	}
	
}
